package cn.liontalk.DecoratorPattern;



/**
 * Created by ZhouZhe on 2018/5/17.
 */
public class DecoratorPatternDemo {


    public static void main(String[] args) {

        /**
         * 明星
         */
        JayZhou jayZhou = new JayZhou();

        /**
         * 经纪人A
         */
        AgentA agent = new AgentA(jayZhou);


        AgentB agentB = new AgentB();

        agentB.acting();
        agentB.sing();

        agent.acting();
        agent.sing();
    }
}
